package thread;

class Point{

}

class PointFactory{
    public static Point makePointByXY(double x,double y){
        Point p = new Point();
        return p;
    }

    public static Point makePointByRA(double r,double a){
        Point p = new Point();
        return p;
    }
}


public class Demo33 {
    public static void main(String[] args) {
        Point p1 = PointFactory.makePointByXY(10,20);
    }

}
